<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> 
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<form:form action="create" method="POST" modelAttribute="member">
	<form:errors path="*" cssClass="errors"/><br/>
	<div>        	
		<label for="username">user id :</label>
		<form:input cssStyle="width:250px" maxlength="30" path="user.username" size="30"/>
		<form:errors path="user.username" cssClass="errors"/>
	</div>
	<br/>
	<div>        	
		<label for="password">Password:</label>
		<form:password cssStyle="width:250px" maxlength="30" path="user.password" size="30"/>
		<form:errors path="user.password" cssClass="errors"/><br/>
	</div>
	<br/>
	<div>        	
		<label for="firstName">First Name:</label>
		<form:input cssStyle="width:250px" maxlength="30" path="firstName" size="30"/>
		<form:errors path="firstName" cssClass="errors"/>
	</div>
	<br/>
	<div>
		<label for="middleName">Middle Name:</label>
		<form:input cssStyle="width:250px" maxlength="30" path="middleName" size="30"/>
		<form:errors path="middleName" cssClass="errors"/>
	</div>
	<br/>
	<div>
		<label for="lastName">Last Name:</label>
		<form:input cssStyle="width:250px" maxlength="30" path="lastName" size="30"/>
		<form:errors path="lastName" cssClass="errors"/>
	</div>
	<br/>
	<div>
		<label for="emailAddress">Email:</label>
		<form:input cssStyle="width:250px" maxlength="30" path="emailAddress" size="30"/>
		<form:errors path="emailAddress" cssClass="errors"/><br/>
	</div>
	<br/>
	<div>
		<label for="phoneNumber">Email:</label>
		<form:input cssStyle="width:250px" maxlength="30" path="phoneNumber" size="30"/>
		<form:errors path="phoneNumber" cssClass="errors"/><br/>
	</div>
	<br/>
	<div>        	
		<label for="streetName">Street Name:</label>
		<form:input cssStyle="width:250px" maxlength="30" path="address.streetName" id="streetName" size="30"/>
		<form:errors path="address.streetName" cssClass="errors"/><br/>
	</div>
	<br/>
	<div>        	
		<label for="streetNumber">Street Number:</label>
		<form:input cssStyle="width:250px" maxlength="30" path="address.streetNumber" id="streetNumber" size="30"/>
		<form:errors path="address.streetNumber" cssClass="errors"/><br/>
	</div>
	<br/>
	<div>        	
		<label for="city">City:</label>
		<form:input cssStyle="width:250px" maxlength="30" path="address.city" id="city" size="30"/>
		<form:errors path="address.city" cssClass="errors"/><br/>
	</div>
	<br/>
	<div>        	
		<label for="zipCode">Zip Code:</label>
		<form:input cssStyle="width:250px" maxlength="30" path="address.zipCode" id="zipCode" size="30"/>
		<form:errors path="address.zipCode" cssClass="errors"/><br/>
	</div>
	<br/>
	<div>        	
		<label for="state">State:</label>
		<form:input cssStyle="width:250px" maxlength="30" path="address.state" id="state" size="30"/>
		<form:errors path="address.state" cssClass="errors"/><br/>
	</div>
	<br/>
	<div>        	
		<label for="country">Country:</label>
		<form:input cssStyle="width:250px" maxlength="30" path="address.country" id="country" size="30"/>
		<form:errors path="address.country" cssClass="errors"/>
	</div>
	<input type="submit" value="submit"/>
</form:form>
